package com.example.travel.mapper;

import com.example.travel.pojo.orm.GroupUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface GroupUserMapper {
    List<GroupUser> getAllGroupUser();

    List<GroupUser> getGroupUserByUserId(int userId);

    List<GroupUser> getGroupUserByGroupId(int groupId);

    int addGroupUser(GroupUser groupUser);

    int deleteGroupUserByGroupId(int groupId);

}
